package com.wsc.it.bridge.pull.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.wsc.it.bridge.pull.service.PullService;

@RestController
@RequestMapping({ "/bridge/pull" })
public class PullController {
	
	@Autowired
	private PullService pullService;

	/**
	 * 牵牛花 商品信息变更通知
	 * 
	 * @param request
	 * @param response
	 */
	@RequestMapping({ "/qnh/goodsInfoChange" })
	public void pullQnhGoodInfoNotice(HttpServletRequest request, HttpServletResponse response) {
		pullService.pullQnhGoodInfoNotice(request, response);
	}

	/**
	 * 牵牛花 商品图片通知
	 *
	 * @param request
	 * @param response
	 */
	@RequestMapping({ "/qnh/imagesPush" })
	public void pullQnhImgNotice(HttpServletRequest request, HttpServletResponse response) {
		pullService.pullQnhImgNotice(request, response);
	}
}
